<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>首页</title>
</head>
<body>
     <h2>首页</h2>
     <hr>

     {% if username %}
     	<p>
          当前登录用户:{{ username }}
        <a href="/logout/">注销</a>
        </p>
     {% else %}
         <a href ='/login/'>登录</a>
     {% endif %}

</body>
</html>